package com.macro.mall.ums.enums;

/**
 * 导出状态枚举
 *
 * @author xuyanjun
 * @date 2019-12-28
 */
public enum MemberWithdrawLogExportStatusEnum {

    /**
     * 未导出
     */
    NOT_EXPORT(0, "未导出"),

    /**
     * 已导出
     */
    EXPORTED(5, "已导出"),
    ;
    /**
     * 值
     */
    private int value;

    /**
     * 描述
     */
    private String description;

    MemberWithdrawLogExportStatusEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public static MemberWithdrawLogExportStatusEnum enumOf(int value) {
        for (MemberWithdrawLogExportStatusEnum userLevelEnum : values()) {
            if (value == userLevelEnum.value) {
                return userLevelEnum;
            }
        }
        throw new IllegalArgumentException("不合法的导出状态枚举。");
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

}
